//
//  HYOUChangeTitleView.h
//  BestGift
//
//  Created by 温晓宇 on 16/1/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HYOUBaseView.h"

@protocol HYOUChangeTitleViewDelegate <NSObject>

/**
 *  用于得到当前点击的title序号 默认序号从1开始
 *
 *  @param titleNumber title序号
 */
- (void)getPresentTitleNumber:(NSInteger)titleNumber;

@end

@interface HYOUChangeTitleView : HYOUBaseView
//标题组
@property(nonatomic, retain)NSArray *titleArray;

//点击颜色
@property(nonatomic, retain)UIColor *titleSelectedColor;

//标题颜色
@property(nonatomic, retain)UIColor *titleColor;

//下方线颜色
@property(nonatomic, retain)UIColor *lineColor;

//字体
@property(nonatomic, assign)CGFloat sizeOfFont;

/**
 *  对外接口, 用于外界(例如滚动视图滚动)对当前标题的变化
 *
 *  @param value 传入的控制值, 对应上方的标题 传入从1开始到最后一个标题的序号即可.
 */
- (void)changeTitleByValue:(NSInteger)value;

//初始化
- (instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray titleColor:(UIColor *)titleColor titleSelectedColor:(UIColor *)titleSelectedColor lineColor:(UIColor *)lineColor sizeOfFont:(CGFloat)size;

+ (HYOUChangeTitleView *)ChangeTitleAnimationWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray titleColor:(UIColor *)titleColor titleSelectedColor:(UIColor *)titleSelectedColor lineColor:(UIColor *)lineColor sizeOfFont:(CGFloat)size;

@property(nonatomic, assign)id <HYOUChangeTitleViewDelegate> delegate;
@end
